package com.jack.bookshop.vo;
import java.math.BigDecimal;

public class BookVo {
    int id;
    String title;
    String image_url;
    int c1_id;
    String c1_text;
    int c2_id;
    String c2_text;
    BigDecimal price;
    float discount;
    int score;
    int stock;
    String description;
    // 省略了 getter、setter、toString() 方法

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public int getC1_id() {
        return c1_id;
    }

    public void setC1_id(int c1_id) {
        this.c1_id = c1_id;
    }

    public String getC1_text() {
        return c1_text;
    }

    public void setC1_text(String c1_text) {
        this.c1_text = c1_text;
    }

    public int getC2_id() {
        return c2_id;
    }

    public void setC2_id(int c2_id) {
        this.c2_id = c2_id;
    }

    public String getC2_text() {
        return c2_text;
    }

    public void setC2_text(String c2_text) {
        this.c2_text = c2_text;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public float getDiscount() {
        return discount;
    }

    public void setDiscount(float discount) {
        this.discount = discount;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "BookVo{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", image_url='" + image_url + '\'' +
                ", c1_id=" + c1_id +
                ", c1_text='" + c1_text + '\'' +
                ", c2_id=" + c2_id +
                ", c2_text='" + c2_text + '\'' +
                ", price=" + price +
                ", discount=" + discount +
                ", score=" + score +
                ", stock=" + stock +
                ", description='" + description + '\'' +
                '}';
    }
}
